package com.hzhr.iot.cqgas.ds.dao.device.example;

import com.hzhr.iot.cqgas.ds.entity.device.DevIotDeviceTypeEntity;
import com.hzhr.iot.cqgas.ds.entity.device.DevIotDeviceTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DevIotDeviceTypeDao {
    /**
     *
     * @param example
     */
    int countByExample(DevIotDeviceTypeExample example);

    /**
     *
     * @param example
     */
    int deleteByExample(DevIotDeviceTypeExample example);

    /**
     * 根据主键删除数据库的记录
     *
     * @param id
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 插入数据库记录
     *
     * @param record
     */
    int insert(DevIotDeviceTypeEntity record);

    /**
     *
     * @param record
     */
    int insertSelective(DevIotDeviceTypeEntity record);

    /**
     *
     * @param example
     */
    List<DevIotDeviceTypeEntity> selectByExample(DevIotDeviceTypeExample example);

    /**
     * 根据主键获取一条数据库记录
     *
     * @param id
     */
    DevIotDeviceTypeEntity selectByPrimaryKey(Integer id);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExampleSelective(@Param("record") DevIotDeviceTypeEntity record, @Param("example") DevIotDeviceTypeExample example);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExample(@Param("record") DevIotDeviceTypeEntity record, @Param("example") DevIotDeviceTypeExample example);

    /**
     *
     * @param record
     */
    int updateByPrimaryKeySelective(DevIotDeviceTypeEntity record);

    /**
     * 根据主键来更新数据库记录
     *
     * @param record
     */
    int updateByPrimaryKey(DevIotDeviceTypeEntity record);
}